<%-- 
    Document   : clusterresult
    Created on : Jan 14, 2010, 1:40:40 PM
    Author     : baga
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
            <link rel="stylesheet" type="text/css" href="style/xse.css">
        </head>
        <body>
            <div>
                <h:form>
                    <h:outputLabel for="searc" value="DSCluster"/>
                    <h:inputText id="search" styleClass="input" value="#{clusterSystem.clusterQuery}"/>
                    <h:commandButton action="#{clusterSystem.clusterQuality}" value="cari" />
                </h:form>
            </div>
            <div id="left_sidebar">
                <h:form>
                    <h:dataTable var="cs" value="#{clusterSystem.labels}">
                        <h:column>
                            <h:commandLink action="#{clusterSystem.clusterLink}"
                                           value="#{cs.label}">
                                <f:param name="indexVal" value="#{cs.index}"/>
                            </h:commandLink>
                        </h:column>
                    </h:dataTable>
                </div>
                <div id="main_content">
                    <h:dataTable var="rl" value="#{clusterSystem.resultLinks}">
                        <h:column>
                            <h:panelGrid columns="1">
                                <h:outputLink target="_self" value="#{rl.urls}">
                                    <h:outputText value="#{rl.urls}"/>
                                </h:outputLink>
                                <h:outputText value="#{rl.contents}"/>
                                <h:outputText value="precision recall"/>
                            </h:panelGrid>
                        </h:column>
                    </h:dataTable>
                </h:form>
            </div>
        </body>
    </html>
</f:view>
